var utils = require('../../../utils/util.js')
var c = require('../../../utils/config.js')
Page({

    /**
     * 页面的初始数据
     */
    data: {
        img: [],
        img_url:c.img_url
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {
        var id = options.id;
        this.getData(id);
    },
    getData: function(id) {
        var that = this;
        var data = {
            url: "/zfcom/com/getimg",
            id: id,
        };
        utils.request(data).then(function(res) {
            if (res.code == 0) {
                var data = res.data;
                that.setData({
                    img: data
                })
            } else {

            }
        });
    }

})